package com.example.shushiyunsst.fragment.main.home.child.miner.sub

import android.content.Context
import android.widget.TextView
import com.example.library_common.utils.PixUtils
import com.example.shushiyunsst.R
import com.lxj.xpopup.core.BottomPopupView
import com.lxj.xpopup.core.CenterPopupView
import com.senon.modularapp.util.JssSpannableString

class StartTransferBuyingSubPop(context: Context) : BottomPopupView(context) {

    override fun getImplLayoutId() = R.layout.start_transfer_buying_sub_pop

    override fun onCreate() {
        super.onCreate()
        val structureTv: TextView = findViewById(R.id.structureTv)
        val str0 = "\$301.00"
        val str1 = "\$621.123456"
        val str = "单价\t$str0 可用USDT\t$str1"
        structureTv.text =
            JssSpannableString(context, str)
                .first(str0).textColor(R.color.PrimaryColor)
                .first(str1).textColor(R.color.PrimaryColor)
    }
    override fun getPopupHeight(): Int {
        return PixUtils.dp2px(260)
    }

    override fun getMaxHeight(): Int {
        return PixUtils.dp2px(300)
    }

}